﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _00_课堂练习
{
    public partial class Form2 : Form
    {
        public Form2(Action<bool> action)
        {
            InitializeComponent();
            this.button1.Click += (s, e) => action(true);
            this.button2.Click += (s, e) => action(false);
        }

    }
}
